@import './varible.less';
.category{
    padding: @padd;
    width: 100%;
    .top{
        display: flex;
        height: 40px;
        border-bottom: 1px solid black;
        align-items: center;
        position: relative;
        .back{
            position: absolute;
            left: 10px;
            width: 15px;
            height: 15px;
            border-left: 3px solid @bdColor;
            border-top: 3px solid @bdColor;
            transform: rotate(-45deg);
        }
        .top-title{
            margin: 0 auto;
            color: @Color;
            font-size: 24px;
        }
    }
    .middle{
        ul {
            width: 100%;
            display: flex;
            align-items: center;
            overflow: scroll;
            height: 50px;
            // background-color: rgba(0, 0, 0, 0.1);
            li {
                padding: 5px;
                flex-shrink: 0;
                color: #ccc;
                font-size: 18px;
                &.active {
                    color: @activeColor;
                }
            }
        }
    }
    .bottom{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        .box{
            width: calc((100% - 10px) / 3);
            margin: 0 5px 5px 0;
            .box-img{
                width: 100%;
                height: 150px;
                box-sizing: border-box;
                border-radius: 10px;
            }
            .box-title{
                font-size: 14px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow:ellipsis;
                font-weight: bold;
            }
            .box-text{
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow:ellipsis;
                color: #ccc;
            }
        }
        .box:nth-child(3n){
            margin-right: 0px;
        }
    }
}